package com.zkh.myutils.net.upload;

import java.io.File;
import java.io.InputStream;

/**
 * 上传文件对象
 * @author zkh
 */
public class UploadFile {
	//上传文件的文件流
	private InputStream fileStream;
	//上传文件，启用临时文件后有值
	private File file;
	//上传文件的文件大小
	private long size;
	//上传文件的mine类型
	private String mimeType;
	//上传文件原来的文件名
	private String filename;
	//文件的后缀名
	private String extensionName;
	
	public InputStream getFileStream() {
		return fileStream;
	}
	public void setFileStream(InputStream fileStream) {
		this.fileStream = fileStream;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public String getMimeType() {
		return mimeType;
	}
	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getExtensionName() {
		return extensionName;
	}
	public void setExtensionName(String extensionName) {
		this.extensionName = extensionName;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	@Override
	public String toString() {
		return "UploadFile [fileStream=" + fileStream + ", file=" + file
				+ ", size=" + size + ", mimeType=" + mimeType + ", filename="
				+ filename + ", extensionName=" + extensionName + "]";
	}
}
